using CMS.Entity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace CMS.EFCore.Config;

public class ArticleCategoryConfig : IEntityTypeConfiguration<ArticleCategory>{
    public void Configure(EntityTypeBuilder<ArticleCategory> builder) {
        builder.Property(x => x.ArticleCategoryName).HasMaxLength(50).IsRequired();
        builder.Property(x => x.Remark).HasMaxLength(200).IsRequired();
    }
}